package com.huazh.service;

import com.huazh.bean.User;
import com.huazh.mapper.UserMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @Description:
 * @Authoe: hzh
 * @Time: 2020/7/3111:51
 */
@Service
public class UserService {
    @Resource
    private UserMapper userMapper;

    @Transactional
    public void add(User user){
        userMapper.add(user);
    }
}
